package com.vito.support;

public enum ResultEnum {

	OK(1, "ok"),
	FAIL(-1, "系统错误，请稍后重试"),
	UNCERTIFIED(1001,"未认证"),
    UNAUTHORIZED(1002,"未授权"),
	UNBIND(1003,"未绑定手机号"),
    UNLOGIN(1004,"未登录"),
	SIGNERROR(1005,"签名错误"),
	PARAMS_INVALID(1006,"请求缺少必要的参数"),
	DATA_ACCESS_ERROR(1007,"数据访问异常"),
    METHOD_INVALID(1008, "不支持的请求方法"),
    UNKNOWN(1009, "未知错误"),
    UNLOCATION(1010, "位置未授权");

    private int code;
    private String message;

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
